import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/:pathMatch(.*)*',
      redirect: '/index',
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('@/views/index.vue'),
    },
    {
      path: '/source',
      name: 'source',
      component: () => import('@/views/source.vue'),
    },
    {
      path: '/service',
      name: 'service',
      component: () => import('@/views/service.vue'),
    },
    {
      path: '/admin',
      name: 'admin',
      component: () => import('@/views/admin.vue'),
    },
    {
      path: '/notice',
      name: 'notice',
      component: () => import('@/views/notice.vue'),
    },
  ],
})

export default router
